package runesim.friendserver;
import org.xsocket.connection.INonBlockingConnection;
public class Node {
	
	public Node(int id, INonBlockingConnection connection) {
		setID(id);
		setConnection(connection);
	}
	
	public void setID(int i) {
		nodeID = i;
	}
	
	public void setState(int i) {
		state = i;
	}
	
	public void setConnection(INonBlockingConnection c) {
		connection = c;
	}
	
	public int getID() {
		return nodeID;
	}
	
	public int getState() {
		return state;
	}
	
	public INonBlockingConnection getConnection() {
		return connection;
	}
	
	int nodeID;
	int state;
	INonBlockingConnection connection;
	
	public final static int STATE_NEW = 0;
	public final static int STATE_OK = 1;
}